// 新建模块路由
// 一个菜单对应一个路由配置，对应一个文件
// 配置员工路由模块
import Layout from '@/layout/index.vue'

export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '',
      component: () => import('@/views/employees/index.vue'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      // 相对于父路径http://127.0.0.1:9528/#/employees/detai1/123
      path: 'detail/:id',
      // 相对于根路径http://127..0.1:9528/#/detai1/123
      // path:'/detail/:id'，// 动态传参
      hidden: true,
      component: () => import('@/views/employees/detail.vue')
    }, {
      path: 'print/:id',
      name: 'print',
      hidden: true,
      component: () => import('@/views/employees/print.vue')
    }
  ]
}
